import { _decorator, Component, Node } from 'cc';
import { EffectBase, JokerEffectData } from '../Card/EffectBase';
const { ccclass, property } = _decorator;

@ccclass('ChipAddHundredEffect')
export class ChipAddHundredEffect extends EffectBase {
    private static _doubleEffect: ChipAddHundredEffect = null;
    static get instance() {
        if (!this._doubleEffect) {
            this._doubleEffect = new ChipAddHundredEffect();
        }
        return this._doubleEffect;
    }
    public activateEffect(data: JokerEffectData) {
        //如果传入是其他数据return
        if (!data.chipnum) {
            return;
        }
        data.chipnum += 100;
    }
}


